import pytest
from utils.logger import get_logger
import os

if __name__ == "__main__":
    logger = get_logger()

    # 运行测试并生成Allure报告
    pytest.main([
        "-s", "-v",
        "--alluredir=reports/allure",
        "--clean-alluredir"
    ])


    # 生成HTML报告
    os.system("allure generate reports/allure -o reports/html --clean")